﻿using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using r4u.business.logic.layer.ALERT;
using r4u.business.logic.layer.ASSESS;
using r4u.business.logic.layer.RECRUIT;

namespace TestApplication
{
    class Program
    {
       /// <summary>
        /// recommendations-received
       /// </summary>
       /// <param name="args"></param>
        static void Main(string[] args)
        {
            #region TEST
            //XmlDocument xmlDoc = new XmlDocument();
            //xmlDoc.Load(@"C:\r4u\TestApplication\Applicants\7.xml");

            //Candidate dananjaya = new Candidate(xmlDoc);

            ////foreach (Certification cert in dananjaya.Certifications)
            ////{
            ////    Console.WriteLine(String.Format("{0}. {1}", cert.Id, cert.Name));
            ////}


            //Console.WriteLine(String.Format("Experience: {0}", dananjaya.Experience));
            ////Console.WriteLine(String.Format("Country: {0}", dananjaya.CountryCode));
            ////Console.WriteLine(String.Format("Age: {0}", dananjaya.Age));


            ////foreach (EducationLevel level in dananjaya.EducationLevels)
            ////{
            ////    Console.WriteLine(String.Format("{0}", level.ToString()));
            ////}

            ////Console.WriteLine(String.Format("Industry: {0}", dananjaya.Industry));

            //Console.ReadKey(); 
            #endregion

            #region Apply
            //Console.Write("Enter Your Vacancy ID:");
            //string vacancyId = Console.ReadLine();
            //string[] filePaths = Directory.GetFiles(@"C:\r4u\TestApplication\Applicants");
            //Vacancy v = new Vacancy();

            //foreach (string path in filePaths)
            //{
            //    XmlDocument doc = new XmlDocument();
            //    doc.Load(path);

            //    v.InsertApplicant(vacancyId, doc);
            //}
            //Console.Write("Success");
            //Console.ReadKey();
            #endregion

            #region Eval
            //Criteria c = new Criteria();
            //c.vacancyId = "8345814";
            //c.recommandation = 10;
            //c.experience = 20;
            //c.education = 10;
            //c.eligibility = 5;
            //c.location = 5;
            //c.age = 5;
            //c.certifications = 5;
            //c.skills = 30;
            //c.projects = 10;


            //Evaluate e = new Evaluate();
            //Ranking[] ranks = e.RankApplicants(c);
            //Console.WriteLine("{0,5} {1,10} {2,-10}", "ID", "Name", "Score");
            //Console.WriteLine("{0,5} {1,10} {2,-10}", "--", "----", "-----"); 

            //foreach (Ranking r in ranks)
            //{
            //    Console.WriteLine("{0,5} {1,10} {2,-10}", r.Id, r.FirstName, r.score); 
            //} 
            #endregion
        }
    }
}
